﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
namespace sieuthi.Threelayer.VO
{
    public class cungcapVO
    {
        public string MaNcc { get; set; }
        public string MaMh { get; set; }
        public string Gia { get; set; }
        public cungcapVO cungcapIDataReader(IDataReader dr)
        {
            cungcapVO obj = new cungcapVO();
            obj.MaNcc = (dr["mancc"] is DBNull) ? string.Empty : dr["mancc"].ToString();
            obj.MaMh = (dr["mamh"] is DBNull) ? string.Empty : dr["mamh"].ToString();
            obj.Gia = (dr["gia"] is DBNull) ? string.Empty : dr["gia"].ToString();
            return obj;
        }
    }
}
